package com.qf.service.impl;
/*
@author fu
@date 2022/3/2220:05
 针对商品的业务接口实现
*/

import com.qf.mapper.ShopMapper;
import com.qf.pojo.Shop;
import com.qf.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired   //注入ShopMapper
        private ShopMapper shopMapper;
    @Override
    public List<Shop> getAllShop() {
        List<Shop> list = shopMapper.findAll();
        if (list!=null){
            return list;
        }
        return null;
    }


    //增加功能
    @Override
    public void add() {

        System.out.println("执行类商品的增加功能...");
    }


    //删除功能
    @Override
    public void delete() {

        System.out.println("执行商品的删除功能....");
    }

    //修改功能
    @Override
    public void update() {

        System.out.println("执行商品的修改功能....");
    }
}
